package ma.view.gui.parameterPanels.mwgde;

import javax.swing.JPanel;

import ma.controller.panels.auxillary.CtrInformationPanel;
import ma.controller.panels.parameterpanels.CtrGeoPanel;
import ma.model.MWGDEInterface;
import ma.view.gui.parameterPanels.GeometryPanel;
import net.miginfocom.swing.MigLayout;

public abstract class GeoPanelMWGDE extends
        GeometryPanel {

    private static final long serialVersionUID = 1L;

    public GeoPanelMWGDE(
            int startGeometryCount,
            String logoPath,
            String manuMethodName,
            MWGDEInterface manuMethod,
            CtrInformationPanel infoPanelCtr,
            CtrGeoPanel geometryController) {
        
        super(
                startGeometryCount,
                logoPath,
                manuMethodName,
                manuMethod,
                infoPanelCtr,
                geometryController);
    }
    
    @Override
    /*
     * (non-Javadoc)
     * @see ma.view.gui.parameterPanels.ParameterPanelsPanel#createPanel()
     */
    protected void createPanel() {        
        this.setLayout(new MigLayout());
        parametersPanel.setLayout(new MigLayout("wrap 1"));
        buttonPanel = new JPanel();
        this.add(buttonPanel, "wrap");        
        this.add(parametersPanel);
        this.add(createImageLabel(logoPath), "aligny top");        
        this.setName("Geometrieparameter");
    }

}
